package com.wx.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private String name;
    private String sex;
    private String phone;
    private String idNumber;
    private String avatar;
    private Integer isFrozen; /*账号是否冻结 1为是 0为否*/
    private String accountName;
    private String email;
    private String signature;
    private Integer bNumber; //借阅次数
    private Integer returnNum; //还书次数
    //todo:用户增加is_delete字段
}
